net.minecraft.src.customstuff.scripts
Class Living

java.lang.Object
  extended by net.minecraft.src.customstuff.scripts.Living
Direct Known Subclasses:
Player

public class Living
extends java.lang.Object


Constructor Summary
Living(net.minecraft.src.EntityLiving living)
           
 
Method Summary
 void addVelo(double x, double y, double z)
          Adds velocity to the living
 void dropItem(int id, int count, int damage)
          Makes the living drop an item
 int getHealth()
           
 int getLookingSide()
           
 double getPositionX()
           
 double getPositionY()
           
 double getPositionZ()
           
 java.lang.String getType()
           
 void move(double x, double y, double z)
          Adds the given values to the living's position
 void move(net.minecraft.src.customstuff.scripts.Position pos)
          Adds the given position to the living's position
 void setHealth(int health)
          Sets the living's health
 void setOnFire(int time)
          Sets the living on fire
 void setPosition(double x, double y, double z)
          Sets the living's position to the given coordiantes
 void setPosition(net.minecraft.src.customstuff.scripts.Position pos)
          Sets the living's position to the given position
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Living

public Living(net.minecraft.src.EntityLiving living)
Method Detail

move

public void move(net.minecraft.src.customstuff.scripts.Position pos)
Adds the given position to the living's position

Parameters:
pos -

move

public void move(double x,
                 double y,
                 double z)
Adds the given values to the living's position

Parameters:
x - The x-value
y - The y-value
z - The z-value

setPosition

public void setPosition(net.minecraft.src.customstuff.scripts.Position pos)
Sets the living's position to the given position

Parameters:
pos -

setPosition

public void setPosition(double x,
                        double y,
                        double z)
Sets the living's position to the given coordiantes

Parameters:
x -
y -
z -

dropItem

public void dropItem(int id,
                     int count,
                     int damage)
Makes the living drop an item

Parameters:
id - The id of the item
count - The amount of the item
damage - The damage values of the item

setOnFire

public void setOnFire(int time)
Sets the living on fire

Parameters:
time - How long the living is set on fire in ticks

setHealth

public void setHealth(int health)
Sets the living's health

Parameters:
health -

addVelo

public void addVelo(double x,
                    double y,
                    double z)
Adds velocity to the living

Parameters:
x - Velocity in x direction
y - Velocity in y direction
z - Velocity in z direction

getPositionX

public double getPositionX()
Returns:
The living's x-coordinate

getPositionY

public double getPositionY()
Returns:
The living's y-coordinate

getPositionZ

public double getPositionZ()
Returns:
The living's z-coordinate

getHealth

public int getHealth()
Returns:
The living's health

getLookingSide

public int getLookingSide()
Returns:
The side the living is looking at (0, 1, 2 or 3)

getType

public java.lang.String getType()
Returns:
The living's type